

/**
 * used to hold information about an attack so it can be passed to other players
 * @author paul peasegood
 *
 */
public class Attack 
{
	private int toHit;
	private int damage;
	
	/**
	 * basic constructor using pre-rolled dice
	 * @param toHit
	 * @param damage
	 */
	public Attack(int toHit,int damage)
	{
		this.toHit = toHit;
		this.damage = damage;
	}
	/**
	 * returns the toHit value
	 * @return
	 */
	public int getToHit()
	{
		return this.toHit;
	}
	
	/**
	 * returns amount of damage
	 * @return
	 */
	public int getDamage()
	{
		return this.damage;
	}
	/**
	 * public to string
	 */
	public String toString()
	{
		return "to Hit:" + this.toHit + " damage:" + this.damage;
	}

}
